﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CDV.MC.MatrixDriver.WebApp.Data
{
    /// <summary>
    /// 矩阵规模信息
    /// </summary>
    public class MatrixScaleInfo
    {
        /// <summary>
        /// 出端口数量
        /// </summary>
        public int DstPortCount { get; set; }

        /// <summary>
        /// 源端口数量
        /// </summary>
        public int SrcPortCount { get; set; }

        /// <summary>
        /// 监视端口数量
        /// </summary>
        public int MonPortCount { get; set; }

        /// <summary>
        /// 输出矩阵规模的文本信息
        /// </summary>
        /// <returns>源端口数量 X 出端口数量</returns>
        public override string ToString()
        {
            return $"{SrcPortCount} X {DstPortCount}";
        }
    }
}
